Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

files of /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/

Largest Odd Number in String.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Largest Odd Number in String.cpp
14 Views
0 Comments
class Solution {
public:
string largestOddNumber(string num) {
int n = num.length();
string ans = "";

Longest Common Prefix.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Longest Common Prefix.cpp
18 Views
0 Comments
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
stri
Maximum Nesting Depth Of The Parentheses.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Maximum Nesting Depth Of The Parentheses.cpp
24 Views
0 Comments
int maxDepth(string s) {
// Write your code here.
int n = s.length();
int count;
int close;
int maxi = 0;
for(int i
Remove Outermost Parentheses.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Remove Outermost Parentheses.cpp
12 Views
0 Comments
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
string removeOuterParentheses(string s) {
int
Reverse Words in a String.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Reverse Words in a String.cpp
25 Views
0 Comments
class Solution {
public:
string reverseWords(string s) {
int n = s.length();
string ans = "";
int i
Rotate String Or Check If One String Is A Rotation Of Another String /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Rotate String Or Check If One String Is A Rotation Of Another String
7 Views
0 Comments
class Solution {
public:
bool rotateString(string s, string goal) {
int l1 = s.length();
int l2 = goal.lengt
Valid Anagram.cpp(sorting Approch) /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Valid Anagram.cpp(sorting Approch)
14 Views
0 Comments
#include<bits/stdc++.h>
using namespace std;

bool isAnagram(string str1, string str2)
{
//Write your code here
// vecto
Valid Anagram.cpp(using unordered Set) /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Valid Anagram.cpp(using unordered Set)
9 Views
0 Comments
class Solution {
public:
bool isAnagram(string s, string t) {
unordered_set<char>set;

for(int i =0;